<?php
class Application_Form_Login extends Zend_Form
{
    public function init ()
    {
        /* Form Elements & Other Definitions Here ... */
        // Set the method for the display form to POST
        $this->setMethod('post');
        // Add an name element
        $this->addElement('text', 'name', 
        array('label' => '姓名:', 'required' => true, 
        'filters' => array('StringTrim')));
        // Add the password element
        $this->addElement('password', 'password', 
        array('label' => '密码', 'required' => true, 
        'filters' => array('StringTrim')));
        // Add the submit button
        $this->addElement('submit', 'submit', 
        array('ignore' => true, 'label' => '登录'));
    }
}

